package cn.lyh.service.impl;

import cn.lyh.annotation.AutoWired;
import cn.lyh.annotation.Component;
import cn.lyh.dao.DogDao;
import cn.lyh.dao.impl.DogDaoImpl;
import cn.lyh.service.Dog;

@Component
public class DogImpl implements Dog{


    @AutoWired
    private DogDaoImpl dogDao;

    public void bark() {
        System.out.println(dogDao.bark());
    }
}
